package com.operate.api.operate.stat.domain.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

@Data
@EqualsAndHashCode(callSuper = false)
public class StatSearchVO implements Serializable {

    private static final long serialVersionUID = -1L;

    @ApiModelProperty(value = "剧目名称[模糊搜索]")
    private String dramaName;

    @ApiModelProperty(value = "制作方名称[模糊搜索]")
    private String companyName;

    @ApiModelProperty(value = "排序类型（1多少人看过 2播放数量 3 点赞数量 4追剧数量）")
    private Integer sortType;

    @ApiModelProperty(value = "排序方式(1升序 2 降序)")
    private Integer sortOrder;

    @ApiModelProperty(value = "页数")
    private Integer pageNum;

    @ApiModelProperty(value = "每页行数")
    private Integer pageSize;


    public Integer getPageNum() {
        if (pageNum == null) {
            pageNum = 1;
        }
        return pageNum;
    }

    public Integer getPageSize() {
        if (pageSize == null) {
            pageSize = 10;
        }
        return pageSize;
    }
}
